# 4.显示账单（显示总支出金额，总收入金额，结余金额
# 5.写入账单（时间按照格式显示
# 控制层，实现界面打印和菜单选择
import book


def main():
    while True:
        print('=============欢迎================')
        print('1显示订单 2写入账单 3退出')
        chioce = int(input('请输入你的选择：'))
        if chioce == 1:
            book.show_book()
        elif chioce == 2:
            book.write_book()
        elif chioce == 3:
            print('正在退出！')
            break
        else:
            print('输入有误')


if __name__ == '__main__':
    main()
